<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div>
        <p class="text-right" th:if="${session.user==null}">
            <br>
            <a th:href="@{/login.html}">登录</a>
            <a th:href="@{/register.html}">注册</a>
        </p>
        <p class="text-right" th:unless="${session.user==null}">
            欢迎 <strong>[[${session.user.usrAccount}]]</strong> 访问
            <br>
            <a th:href="@{/logout.do}">退出</a>
        </p>
        <ul>
            <li th:each="user,st : ${list}">
                <span th:text="st.count"></span>
                <span th:text="st.id"></span>
                <span th:text="st.name"></span>

            </li>
        </ul>
    </div>

</body>
</html>